﻿rem 读取当前日期，减去2年，反写到系统。
set "CurYear=%date:~0,4%"
set "CurMonth=%date:~5,2%"
set "CurDay=%date:~8,2%"
set /a Minus2Year = %CurYear% +2
set s=/
set "newDate=%Minus2Year%%s%%CurMonth%%s%%CurDay%"
date %newDate% 
